HID: Avoid ABI change in 4.17.6
authorBen Hutchings <ben@decadent.org.uk>
Wed, 11 Jul 2018 23:39:38 +0000 (00:39 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 20 Jul 2018 21:08:27 +0000 (22:08 +0100)
commit8c867b0aab8be77cd23f9897e4745c2486bc8349
tree098cceb44cd9e68e1c39ed33c442f09a698e66ed
parent9083343b3cefcb516c8e2cdf869e748fb3f51afa
HID: Avoid ABI change in 4.17.6

Commit 8f732850df1b "HID: core: allow concurrent registration of
drivers" introduced atomic bit-operations on hid_device::status, and
changed its type from unsigned int to unsigned long as required for
those operations.

Revert the type change and use cmpxchg() for the bit-operations,
since it supports unsigned int.

Gbp-Pq: Topic debian
Gbp-Pq: Name hid-avoid-abi-change-in-4.17.6.patch
drivers/hid/hid-core.c
include/linux/hid.h